﻿using MediatR;
using THE_WIND_RISES.Common.Domans.Produce.Procurement;
using THE_WIND_RISES.Common.Domans.Produce.Supplier;
using THE_WIND_RISES.Common.Dtos;

namespace Production_Set.API.Application.Commands.Procurement
{
    public class PurchasingsCreateCommand : IRequest<Result>
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int PurchasinId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string PurchasingNo { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        public string PurchasingName { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        public int PurchasingTypeId { get; set; }
        /// <summary>
        /// 所属项目
        /// </summary>
        public int ProjectId { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string PurchasingDesc { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public int SuppliersId { get; set; }
        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal OrderAmount { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string Currency { get; set; }
        /// <summary>
        /// 预付款金额
        /// </summary>
        public decimal AdvancePayment { get; set; }
        /// <summary>
        /// 订单开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 订单结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 签订时间
        /// </summary>
        public DateTime SignUpTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int PurchasingStatus { get; set; }
        /// <summary>
        /// 计税类型
        /// </summary>
        public string TaxType { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public string TaxRate { get; set; }
        /// <summary>
        /// 开票金额
        /// </summary>
        public int Billing { get; set; }
        /// <summary>
        /// 已付金额
        /// </summary>
        public int PaidFor { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string BillMaking { get; set; }
        /// <summary>
        /// 制单部门
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatus { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; }
        /// <summary>
        /// 是否第三方合同
        /// </summary>
        public string Contract { get; set; }
        /// <summary>
        /// 付款条件
        /// </summary>
        public string Condition { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        public string Salesperson { get; set; }
        /// <summary>
        /// 最晚付款日期
        /// </summary>
        public DateTime LatestDate { get; set; }
        /// <summary>
        /// test1
        /// </summary>
        public string tests { get; set; }
        /// <summary>
        /// 操作人
        /// </summary>
        public string? Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string? HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }

    }
}
